FROM index.alauda.cn/zhulige/newbee_core_rc2:1.0.0-core-160714

RUN cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone

#RUN yum install -y kde-l10n-Chinese
#RUN yum reinstall -y glibc-common
#ENV LANG "zh_CN.UTF-8"

RUN mkdir -p /dotnetapp
COPY . /dotnetapp
WORKDIR /dotnetapp/WebMvc_Survey

RUN dotnet restore

RUN dotnet build

EXPOSE 80

ENTRYPOINT ["dotnet", "run"]

#ONBUILD COPY . /dotnetapp
#ONBUILD RUN dotnet restore